package com.example.myapplication;

import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class ExamDetailActivity extends AppCompatActivity {
    private ImageView imageViewExam;
    private TextView textViewName, textViewReminderTime, textViewDescription;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_exam_detail);

        // 获取传递的数据
        String examName = getIntent().getStringExtra("examName");
        String examReminderTime = getIntent().getStringExtra("examReminderTime");
        String examDescription = getIntent().getStringExtra("examDescription");

        // 绑定视图
        imageViewExam = findViewById(R.id.imageViewExam);
        textViewName = findViewById(R.id.textViewName);
        textViewReminderTime = findViewById(R.id.textViewReminderTime);
        textViewDescription = findViewById(R.id.textViewDescription);


        textViewName.setText(examName);
        textViewReminderTime.setText("提醒时间: " + examReminderTime);
        textViewDescription.setText("简介：大家请认真对待每次考试");
    }
}
